<div ng-controller="orderFormCtrl">
  <!-- <div class="space-80"></div> -->
  <div class="row margin-b-30 text-center">
    <h1>订单管理</h1>
  </div>
  <div class="row">
      <div class="col-sm-10 col-sm-offset-1">
          <div class="table-responsive">
              <table class="table tableFilter table-hover table-striped">
                <thead>
                  <tr>
                     <th><h4>订单号</h4></th>
                     <th><h4>餐号</h4></th>
                     <th><h4>金额</h4></th>
                     <th><h4>下单时间</h4></th>
                     <th><h4>操作</h4></th>
                  </tr>
                </thead>
                <tbody>
                    <tr data-ng-repeat="x in food_forms" class="formalign">
                        <td>
                          <h4><small>{{x.order_number}}</small></h4>
                        </td>
                        <td>
                          <h4><small>{{x.number}}</small></h4>
                        </td>
                        <td>
                          <h4><small>{{x.money}}</small></h4>
                        </td>
                        <td>
                          <h4><small>{{x.time}}</small></h4>
                        </td>
                        <td>
                          <div class="cart-buttons">
                            <!-- <a class="btn btn-dark btn-xg" ng-click="print_form($index)">打印</a> -->
                            <!-- <input type="button" value="打印预览" ng-click="printPreview($index)" /> -->
                            <a class="btn btn-dark btn-xg" ng-click="printOrder($index)">打印</a>
                            <!-- <a class="btn btn-dark btn-xg" onclick="aaaaa()">测试</a> -->
                            <a type="button" class="btn btn-primary btn-xg" data-toggle="modal" data-target="#myForm" ng-click="search_detail($index)">查看</a>
                          </div>
                          <!-- Modal -->
                          <div class="modal fade" id="myForm" tabindex="-1" role="dialog" aria-labelledby="myFormLabel">
                              <div class="modal-dialog" role="document">
                                  <div class="modal-content">
                                      <div class="modal-header">
                                          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                          <h4 class="modal-title" id="myFormLabel">订单号：{{forms_detail.order_number}}</h4>
                                      </div>
                                      <div class="modal-body">
                                        <div class="row">
                                          <!-- <h3>总金额:<span ng-bind="allSum()"></span></h3> -->
                                          <h3>总金额:{{forms_detail.money}}</h3>
                                        </div>
                                        <div class="row">
                                          <table class="table table-bordered cart-table">
                                            <tbody>
                                              <thead class="res_text_center">
                                                <tr>
                                                   <th><h4>菜品</h4></th>
                                                   <th><h4>名称</h4></th>
                                                   <th><h4>单价</h4></th>
                                                   <th><h4>数量</h4></th>
                                                   <th><h4>金额</h4></th>
                                                </tr>
                                              </thead>
                                              <tr ng-repeat="x in forms_detail.food_detail">
                                                  <td>
                                                    <img src="{{x.img}}" alt="" width="70">
                                                  </td>
                                                  <td>
                                                    <h4><small>{{x.name}}</small></h4>
                                                  </td>
                                                  <td>
                                                    <h4><small>{{x.price}}</small></h4>
                                                  </td>
                                                  <td>
                                                    <h4><small>{{x.num}}</small></h4>
                                                  </td>
                                                  <td>
                                                    <h4><small>{{x.price*x.num}}</small></h4>
                                                  </td>
                                              </tr>
                                            </tbody>
                                          </table>
                                        </div>
                                        <div class="row">
                                          备注：<input type="text" value="{{forms_detail.remarks}}" style="width: 60%;">
                                        </div>
                                      </div>
                                  </div>
                              </div>
                          </div>

                          <!-- <button type="button" class="btn btn-xs btn-primary">打印</button>
                          <button type="button" class="btn btn-xs btn-primary">查看</button> -->

                          <!-- <a href="#" class="pull-left"> 打印</a>
                          <a href="#" class="pull-right">查看</a> -->
                        </td>
                    </tr>
                </tbody>
              </table>                  
          </div><!--end cart table-->
      </div>
  </div>

<!--   <div class="row">
    <div class="widget-body">
        <div class="mt">
            <table id="datatable-table" class="table table-striped table-hover tableFilter">
                <thead>
                  <tr>
                      <th>订单号</th>
                      <th>餐号</th>
                      <th class="no-sort hidden-xs">金额</th>
                      <th class="hidden-xs">下单时间</th>
                      <th class="hidden-xs">操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr data-ng-repeat="x in food_forms">
                      <td>
                        <h4><small>{{x.order_number}}</small></h4>
                      </td>
                      <td>
                        <h4><small>{{x.number}}</small></h4>
                      </td>
                      <td>
                        <h4><small>{{x.money}}</small></h4>
                      </td>
                      <td>
                        <h4><small>{{x.time}}</small></h4>
                      </td>
                      <td>
                        <div class="cart-buttons">
                          <a class="btn btn-dark btn-xg" ng-click="printOrder($index)">打印</a>
                          <a type="button" class="btn btn-primary btn-xg" data-toggle="modal" data-target="#myModal" ng-click="search_detail($index)">查看</a>
                        </div>
                        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                        <h4 class="modal-title" id="myModalLabel">订单号：{{forms_detail.order_number}}</h4>
                                    </div>
                                    <div class="modal-body">
                                      <div class="row">
                                        <h3>总金额:{{forms_detail.money}}</h3>
                                      </div>
                                      <div class="row">
                                        <table class="table table-bordered cart-table">
                                          <tbody>
                                            <thead class="res_text_center">
                                              <tr>
                                                 <th><h4>菜品</h4></th>
                                                 <th><h4>名称</h4></th>
                                                 <th><h4>单价</h4></th>
                                                 <th><h4>数量</h4></th>
                                                 <th><h4>金额</h4></th>
                                              </tr>
                                            </thead>
                                            <tr ng-repeat="x in forms_detail.food_detail">
                                                <td>
                                                  <img src="{{x.img}}" alt="" width="70">
                                                </td>
                                                <td>
                                                  <h4><small>{{x.name}}</small></h4>
                                                </td>
                                                <td>
                                                  <h4><small>{{x.price}}</small></h4>
                                                </td>
                                                <td>
                                                  <h4><small>{{x.num}}</small></h4>
                                                </td>
                                                <td>
                                                  <h4><small>{{x.price*x.num}}</small></h4>
                                                </td>
                                            </tr>
                                          </tbody>
                                        </table>
                                      </div>
                                      <div class="row">
                                        备注：<input type="text" value="{{forms_detail.remarks}}" style="width: 60%;">
                                      </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                      </td>
                  </tr>
                </tbody>
            </table>
        </div>
    </div>
  </div> -->
<!--  -->

<!--   <section class="widget">
    <div class="widget-body">
      <div id="tabs1c" class="tab-content mb-lg">
        <div class="tab-pane active clearfix" id="tab1">
          <div id="alarmTable">
            <table data-datatable="ng" data-dt-options="dtOptions" class="table table-striped table-hover tableFilter">
              <thead>
                <tr>
                  <th class="text-align-center">订单号</th>
                  <th class="text-align-center">餐号</th>
                  <th class="text-align-center">金额</th>
                  <th class="text-align-center">下单时间</th>
                  <th class="text-align-center">操作</th>
                </tr>
              </thead>
              <tbody>
                <tr data-ng-repeat="x in food_forms">
                  <td>{{x.order_number}}</td>
                  <td class="text-align-center">{{x.number}}</td>
                  <td class="text-align-center">{{x.price}}</td>
                  <td class="text-align-center">{{x.money}}</td>
                  <td class="text-align-center">{{x.time}}</td>
                  <td>
                    <div class="cart-buttons">
                      <a class="btn btn-dark btn-xg" ng-click="printOrder($index)">打印</a>
                      <a type="button" class="btn btn-primary btn-xg" data-toggle="modal" data-target="#myModal" ng-click="search_detail($index)">查看</a>
                    </div>
                    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                        <div class="modal-dialog" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="myModalLabel">订单号：{{forms_detail.order_number}}</h4>
                                </div>
                                <div class="modal-body">
                                  <div class="row">
                                    <h3>总金额:{{forms_detail.money}}</h3>
                                  </div>
                                  <div class="row">
                                    <table class="table table-bordered cart-table">
                                      <tbody>
                                        <thead class="res_text_center">
                                          <tr>
                                             <th><h4>菜品</h4></th>
                                             <th><h4>名称</h4></th>
                                             <th><h4>单价</h4></th>
                                             <th><h4>数量</h4></th>
                                             <th><h4>金额</h4></th>
                                          </tr>
                                        </thead>
                                        <tr ng-repeat="x in forms_detail.food_detail">
                                            <td>
                                              <img src="{{x.img}}" alt="" width="70">
                                            </td>
                                            <td>
                                              <h4><small>{{x.name}}</small></h4>
                                            </td>
                                            <td>
                                              <h4><small>{{x.price}}</small></h4>
                                            </td>
                                            <td>
                                              <h4><small>{{x.num}}</small></h4>
                                            </td>
                                            <td>
                                              <h4><small>{{x.price*x.num}}</small></h4>
                                            </td>
                                        </tr>
                                      </tbody>
                                    </table>
                                  </div>
                                  <div class="row">
                                    备注：<input type="text" value="{{forms_detail.remarks}}" style="width: 60%;">
                                  </div>
                                </div>
                            </div>
                        </div>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>         
  </section> -->

</div>